package com.ruoyi.project.xkx.school.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.xkx.school.service.IXkxSchoolCourseService;
import com.ruoyi.project.xkx.school.service.impl.XkxSchoolServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/schoolCourse")
public class XkxSchoolCourseController {

  @Autowired
  private IXkxSchoolCourseService schoolCourseService;

  @GetMapping("/{schoolId}")
  public AjaxResult getSchoolCourse(@PathVariable Integer schoolId){
    Map schoolCourse = schoolCourseService.getSchoolCourse(schoolId);
    return AjaxResult.success(schoolCourse);
  }


}
